





//延迟加载
function lazyImg(){
  showLazyImg();
  $(window).scroll(function(){
    showLazyImg();
  })
}

function showLazyImg(){
  var height=$(window).height()+50;
  $(".lazyImg").each(function(){
    if(($(this).offset().top - $(window).scrollTop()<height ) && $(this).attr("src").indexOf("load")>-1 ){
      console.log("加载图片");
    var src = $(this).attr("data-original");
    $(this).attr("src",src);
    }
  })
}
